import axios from "../utils/request";
//注册
export const $register=async(params)=>{
    let {data}=await axios.post('auth/register',params);
    return data;
}
//发送验证码
export const $SendCode=async(params)=>{
    console.log(params);
    let {data}=await axios.post('auth/sendCAPTCHA',params);
    return data;
}
//验证验证码
export const $ConfirmCode=async(params)=>{
    let {data}=await axios.get('auth/verifyCAPTCHA',{params:params});
    return data;
}